Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
GitHub Copilot
Write better code with AI
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
All features
Documentation
GitHub Skills
Blog
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
sarvex
/
leetcode-patterns
Public
forked from
seanprashad/leetcode-patterns
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
12
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security
Insights
Files
solutions
Breadcrumbs
leetcode-patterns
/
Tree Depth First Search
/
Copy path
Directory actions
More options
Directory actions
More options
Latest commit
History
History
solutions
Breadcrumbs
leetcode-patterns
/
Tree Depth First Search
/
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
100_Same_Tree.java
100_Same_Tree.java
101_Symmetric_Tree.java
101_Symmetric_Tree.java
104_Maximum_Depth_of_Binary_Tree.java
104_Maximum_Depth_of_Binary_Tree.java
105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.java
105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.java
108_Convert_Sorted_Array_to_Binary_Search_Tree.java
108_Convert_Sorted_Array_to_Binary_Search_Tree.java
110_Balanced_Binary_Tree.java
110_Balanced_Binary_Tree.java
112_Path_Sum.java
112_Path_Sum.java
113_Path_Sum_II.java
113_Path_Sum_II.java
124_Binary_Tree_Maximum_Path_Sum.java
124_Binary_Tree_Maximum_Path_Sum.java
129_Sum_Root_to_Leaf_Numbers.java
129_Sum_Root_to_Leaf_Numbers.java
130_Surrounded_Regions.java
130_Surrounded_Regions.java
1644_Lowest_Common_Ancestor_of_a_Binary_Tree_II.java
1644_Lowest_Common_Ancestor_of_a_Binary_Tree_II.java
1650_Lowest_Common_Ancestor_of_a_Binary_Tree_III.java
1650_Lowest_Common_Ancestor_of_a_Binary_Tree_III.java
1676_Lowest_Common_Ancestor_of_a_Binary_Tree_IV.java
1676_Lowest_Common_Ancestor_of_a_Binary_Tree_IV.java
199_Binary_Tree_Right_Side_View.java
199_Binary_Tree_Right_Side_View.java
212_Word_Search_II.java
212_Word_Search_II.java
226_Invert_Binary_Tree.java
226_Invert_Binary_Tree.java
235_Lowest_Common_Ancestor_of_a_Binary_Search_Tree.java
235_Lowest_Common_Ancestor_of_a_Binary_Search_Tree.java
236_Lowest_Common_Ancestor_of_a_Binary_Tree.java
236_Lowest_Common_Ancestor_of_a_Binary_Tree.java
297_Serialize_and_Deserialize_Binary_Tree.java
297_Serialize_and_Deserialize_Binary_Tree.java
315_Count_of_Smaller_Numbers_After_Self.java
315_Count_of_Smaller_Numbers_After_Self.java
329_Longest_Increasing_Path_in_a_Matrix.java
329_Longest_Increasing_Path_in_a_Matrix.java
437_Path_Sum_III.java
437_Path_Sum_III.java
538_Convert_BST_to_Greater_Tree.java
538_Convert_BST_to_Greater_Tree.java
543_Diameter_of_Binary_Tree.java
543_Diameter_of_Binary_Tree.java
572_Subtree_of_Another_Tree.java
572_Subtree_of_Another_Tree.java
617_Merge_Two_Binary_Trees.java
617_Merge_Two_Binary_Trees.java
653_Two_Sum_IV_-_Input_is_a_BST.java
653_Two_Sum_IV_-_Input_is_a_BST.java
654_Maximum_Binary_Tree.java
654_Maximum_Binary_Tree.java
662_Maximum_Width_of_Binary_Tree.java
662_Maximum_Width_of_Binary_Tree.java
700_Search_in_a_Binary_Search_Tree.java
700_Search_in_a_Binary_Search_Tree.java
98_Validate_Binary_Search_Tree.java
98_Validate_Binary_Search_Tree.java
View all files
You can’t perform that action at this time.